<a href="<?php echo $this->url(
	array(
    	'controller' => 'index',
    	'action'     => 'index'
    ), 
    'default', 
	true) ?>"><--Back</a>

<form method="post" action="<?php echo $this->url()?>/save">
	<table border="1">
		<tr>
			
			<th>Activate</th>
			<th>Name</th>
			<th>Test</th>
			<th>Description</th>
		</tr>
		<?php foreach ($this->dicts as $dict) : ?>	
		
		<tr>
			<td>
				<?php if(ord($dict->enabled)) : ?>
					<input type='checkbox' name='ids[]' value="<?php echo $dict->id ?>" checked="checked">
				<?php  else :?>
					<input type='checkbox' name='ids[]' value="<?php echo $dict->id ?>" >
				<?php endif ?>	
			</td>
			
			<td><?php echo $dict->name ?></td>
			<td><a href="<?php echo str_replace('{query_word}', 'hello', $dict->url) ?>" target="_blank"><?php echo $dict->name ?></a></td>
			<td><?php echo $dict->description ?>&nbsp;</td>
		</tr>
		<?php endforeach?>
	</table>
	<input type="submit" value="Save" title="xxx"> 
</form>